set(MOBILE_FILEDB_SOURCES
        searchdatabase.h
        searchdatabase.cpp
        )

add_library(filedb ${MOBILE_FILEDB_SOURCES})

find_package(Qt5Sql COMPONENTS Sql REQUIRED)

target_include_directories(filedb PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(filedb PUBLIC ${Qt5Sql_INCLUDE_DIRS})

target_link_libraries(filedb PRIVATE
        Qt${QT_VERSION_MAJOR}::Widgets
        ${Qt5Sql_LIBRARIES}
        sqlite3
        mobile_common
        )
